package com.youi.service;

import java.util.List;
import java.util.Map;


public interface BaseService<T> {
	public T get(Long id);
	public void saveOrUpdate(T t);
	public void saveOrUpdateAll(List<T> t);
	public void delete(T t);
	public void delById(Long id);
	public void deleteAll(List<T> t);
	public T getByParam(Map<String, Object> params);
	public List<T> getByParams(Map<String, Object> params);
	public T getByParam(Map<String, Object> params,Map<String, Object> searchParams,Map<String, Object> sortParams);
	public List<T> getByParams(Map<String, Object> params, Map<String, Object> searchParams,Map<String, Object> sortParams);
	public T getByParamss(Map<String, Object> params,Map<String, Object> searchParams,Map<String, Object> sortParams,
			Map<String, Object>  gtParams,Map<String, Object> ltParams);
	public List<T> getByParamsList(Map<String, Object> params,Map<String, Object> searchParams,Map<String, Object> sortParams,
			Integer pageIndex, Integer pageNum,Map<String, Object>  gtParams,Map<String, Object> ltParams);
	public List<T> getByParamsAll(Map<String, Object> params,Map<String, Object> searchParams,Map<String, Object> sortParams,
			Map<String, Object>  gtParams,Map<String, Object> ltParams);
	public Integer  getCount(Map<String, Object> params);
	public Integer  getCountByParams(Map<String, Object> params, Map<String, Object> searchParams);
	public Integer  getCountByParamss(Map<String, Object> params,Map<String, Object> searchParams,
			Map<String, Object>  gtParams,Map<String, Object> ltParams);
	
}
